home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
comm
/
tcp
/
amircpin.lha
/
ping.amirx
< prev
Wrap
Text File
|
1997-02-02
|
2KB
|
68 lines
/* Ping script for use with AmIRC 1.x */ Version='1.01' /*
// Written by Deryk Robosson 3.1.96
//
// newlook@ameritech.net newlook on #amiga IRC (EfNet)
//
// 2.2.97 Added flood support to script
// as well as just passing it a user nick.
*/
/* set your ping count here */
count=5
bold=d2c(2)
options results
parse arg param
param=trim(upper(param))
if param="" then do
Call Version()
Exit
end
if param='VER' then do
Call Version()
Exit
end
if param='HELP' then do
Call Help()
Exit
end
if param~="" then do
parse var param site" "command
if site~="" then site=trim(upper(site))
else site=""
if command~="" then command=trim(upper(command))
else command=""
end
'USERHOST 'site
if result~="RESULT" then parse var result user"@"site
/* prepare for the main file */
con="con:0/0/600/100/PingOutput/CLOSE/SIMPLEREFRESH"
/* switch on our parameters */
select
when command="" then ping='amitcp:bin/ping -c'||count||' '||site||' >'||con
when command="FLOOD" then ping='amitcp:bin/ping -f '||site||' >'||con
otherwise nop
end
ADDRESS COMMAND ping
EXIT
Version:
'echo 'BOLD"Ping.AMIRX"BOLD" Version "BOLD||VERSION||BOLD
'echo '"Read the top of Ping.AMIRX script for history."
'echo 'BOLD"©1996,97"BOLD" Deryk Robososn "BOLD"(newlook)"BOLD" - [newlook@ameritech.net]"
'echo 'BOLD"USAGE:"BOLD" /<alias> usernick, /<alias> site.com, /<alias> usernick FLOOD"
return
Help:
'echo 'BOLD"Ping.AMIRX"BOLD" Help"
'echo 'BOLD"VER - "BOLD"displays script version"
'echo 'BOLD"FLOOD - "BOLD"selects ping flood"
'echo 'BOLD"HELP - "BOLD"displays this file"
return